import request from '@/utils/request'
import Qs from 'qs'
export function getList(params) {
    return request({
        url: '/item/list',
        method: 'get',
        params
    })
}
export function addItem(data) {
    return request({
        url: '/item/creator',
        method: 'post',
        data: Qs.stringify(data)
    })
}

export function updateItem(data) {
    return request({
        url: '/item/modifier',
        method: 'post',
        data: Qs.stringify(data)
    })
}

export function deleteItem(params) {
    return request({
        url: '/item/id/' + params,
        method: 'delete'
    })
}
